// 获取TokenID
export function getTokenID() {
    let _tokenID = '';
    if (window.sessionStorage.getItem('TokenID')) {
        _tokenID = window.sessionStorage.getItem('TokenID');
    }
    if ($.trim(_tokenID) === '') {
        let _rd = webservice.HttpPostSync(FrameService.Host + '/user/SessionTokenIDGet');
        if ($.trim(_rd) !== '') {
            if (_rd.Success === 1) {
                _tokenID = _rd.Result;
            }
            window.sessionStorage.setItem('TokenID', $.trim(_tokenID));
        }

    }
    return $.trim(_tokenID);
}

export default {
    getTokenID
}